<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
* {
	margin: 0px;
	padding: 0px;
}

body {
	margin: 10px;
}

p {
	text-indent: 2em;
	line-height: 1.3em;
	font-size: 13px;
}
</style>
</head>
<body>
	<p>
		谢谢您的使用，请依次点击下面2个链接
	</p>

	<p>
		<a href="#" onclick="clearsession();return false;">1发信号，清除session</a>	
	</p>
	<p>
		<a href="#" onclick="closewindow();return false;">2请点击我关闭本窗口或点右上角叉关闭(chrome流星器需点右上角叉关闭)</a>		
	</p>

	<script type="text/javascript">		
		
		function clearsession() {
			window.location.href="UserServlet?id=1000";//此句还没有执行完就跑到下面去执行关闭窗口的语句了，所以不行			
		}
		
		function closewindow() {
			//window.location.href="UserServlet?id=1000";//此句还没有执行完就跑到下面去执行关闭窗口的语句了，所以不行
			window.opener= null;
			window.open("","_self");			
			window.close();
			if(window){
			   window.location.href="about:blank";
			}
		}
	</script>


</body>
</html>